package com.cloudkinto.service.finance;

import com.cloudkinto.entity.CompanyAccountDo;
import com.baomidou.mybatisplus.extension.service.IService;

import com.cloudkinto.common.web.PageResult;
import com.cloudkinto.common.web.SingleResult;
import com.cloudkinto.entity.RechargeRecordDo;
import com.cloudkinto.service.finance.vo.CompanyAccountPageRes;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  service接口
 * </p>
 * @author ding
 * @since 2020-06-10
 */
public interface CompanyAccountService extends IService<CompanyAccountDo> {

    SingleResult addInit();

    Object add(Object req, Long userId);

    SingleResult updateInit(Long id);

    Object update(Object updateVo, Long userId);

    int delete(Long id, Long userId);

    Object detail(Long id);

    SingleResult pageInit();

    List<CompanyAccountPageRes> getList(Map<String, String> map);

    PageResult getListPage(Map<String, String> map);

    void countBillNote();

    boolean getIsDue(Long companyId);

    Double addAmount(RechargeRecordDo recordDo);

    double costAmount(String companyId, Double costAmount, Integer currency);

    void updateAmount();
}
